package sy.service.impl;

import java.io.Serializable;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import sy.dao.AppComplaintDaoI;
import sy.model.AppComplaint;
import sy.model.AppEquipment;
import sy.service.AppComplaintServiceI;

@Service("appComplainService")
public class AppComplaintServiceImpl implements AppComplaintServiceI{
	@Autowired
	AppComplaintDaoI appComplainDao;

	@Override
	public Serializable save(AppComplaint appComplaint) {
		// TODO Auto-generated method stub
		return appComplainDao.save(appComplaint);
	}

	@Override
	public List<AppComplaint> listAppComplaintBySysAccountId(String sysAccountId) {
		// TODO Auto-generated method stub
		return appComplainDao.listAppComplaintBySysAccountId(sysAccountId);
	}
	
	@Override
	public List<AppComplaint> getList() {
		// TODO Auto-generated method stub
		return appComplainDao.getList();
	}

	@Override
	public void updateStatusByCode(String code, String status) {
		// TODO Auto-generated method stub
		appComplainDao.updateStatusByCode(code, status);
	}

	@Override
	public AppComplaint getAppComplaintByCode(String code) {
		// TODO Auto-generated method stub
		return appComplainDao.getAppComplaintByCode(code);
	}

	@Override
	public List<AppComplaint> getListByStatus(String status) {
		// TODO Auto-generated method stub
		return appComplainDao.getListByStatus(status);
	}

}
